package ycl.base.common.properties.redis;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * redis配置类
 *
 * @author: YCL
 * @date: 2021-10-25 18:08:58
 */
@Data
@Component("redisProperties")
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {

	@ApiModelProperty("地址")
	private String host;

	@ApiModelProperty("端口")
	private int port;

	@ApiModelProperty("等待时间")
	private int timeout;

	@ApiModelProperty("什么鬼配置.......")
	private RedisLettuceProperties lettuce;
}
